function buildNav() {
	var pName = pageName();

	var output = '<ul class="nav_main">';

	output += '<li><a id="index" href="./index.html">最新</a></li>';
	output += '<li><a id="comment" href="./comment.html">评论</a></li>';		
	output += '<li><a id="weibo" href="./weibo.html">微博</a></li> ';
	output += '<li><a id="blog" href="./blog.html">博客</a></li> ';

	output += '<span><li><a id="setting" href="./setting.html">配置</a></li></span>';
	output += '<span><li><a id="source" href="./source.html">统计</a></li></span>';

	output += '</ul>';
	$("#nav_channel").html(output);

	$("#" + pName).addClass("current");

/*
	if (pName == 'index') {
		output += '<li><a href="#" onclick="mode=0;instant.init();">最新</a></li>';
		output += '<li><a href="#" onclick="mode=1;instant.init();">最热</a></li>';
		var keys = dispWords.keys();
		for (var i=0; i<keys.length; i++) {
			var value = dispWords.get(keys[i]);
			if (value == 'undefined' || value == null) continue;
			output += '<li><a href="#" onclick="instant.init(3, \'' + $.trim(keys[i]) + '\');">' + value + '</a></li>';
		}
	} else {
		output += '<li><a href="./index.html" onclick="mode=0;instant.init();">最新</a></li>';
		output += '<li><a href="./index.html" onclick="mode=1;instant.init();">最热</a></li>';
		var keys = dispWords.keys();
		for (var i=0; i<keys.length; i++) {
			var value = dispWords.get(keys[i]);
			if (value == 'undefined' || value == null) continue;
			output += '<li><a href="./index.html" onclick="instant.init(3, \'' + $.trim(keys[i]) + '\');">' + value + '</a></li>';
		}
	}

	if (pName == 'comment') {
		output += '<li><a href="#" class="current">评论</a></li>';
	} else {
		output += '<li><a href="./comment.html">评论</a></li>';		
	}

	if (pName == 'weibo') {
		output += '<li><a href="#" class="current">微博</a></li> ';
	} else {
		output += '<li><a href="./weibo.html">微博</a></li> ';
	}

	if (pName == 'blog') {
		output += '<li><a href="#" class="current">博客</a></li> ';
	} else {
		output += '<li><a href="./blog.html">博客</a></li> ';
	}

	output += '<span><li><a href="./setting.html">配置</a></li></span></ul>';
	$("#nav_channel").html(output);
	*/
}
